package com.alisoft.couchdbclient;

public class CouchDBConnectionException extends RuntimeException {



	/**
	 * 
	 */
	private static final long serialVersionUID = 3213853550514119923L;
	
	private String error;
	private String reason;
	private int responseCode;
	
	public CouchDBConnectionException(String errorMessage, String error, String reason, int responseCode) {
		super(errorMessage + "\n{error:" + error + ", reason:" + reason + ",code:" + responseCode + "}");
		
		this.error = error;
		this.reason = reason;
		this.responseCode = responseCode;		
	}

	
	public String getError() {
		return error;
	}

	public String getReason() {
		return reason;
	}

	public int getResponseCode() {
		return responseCode;
	}

}
